<template>
	<view>
		kind
		<navigator :url="`./list/list?id=${id}`">
			跳转到商品页
		</navigator>
		<view @tap="save">
			本地存储的方式传递数据
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:"1308339256886423554"
			};
		},
		methods:{
			save(){
				uni.setStorageSync("id",this.id);
				uni.navigateTo({
					url: './list/list',
				});
			}
		},
		onLoad() {
			getApp().globalData.text = "李四"
		}
	}
</script>

<style lang="scss" scoped>

</style>
